<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="../_assets/stylesheets/github-markdown.css">
    <link rel="stylesheet" href="../_assets/stylesheets/note.css">
</head>
<body>    
    <article class="markdown-body">
        <h2 id="-shadowsocks">安装shadowsocks</h2>
<ul>
<li><code>sudo apt-get install python-gevent python-pip</code></li>
<li><code>sudo pip install shadowsocks</code></li>
<li><code>sudo apt-get install python-m2crypto</code></li>
</ul>
<h2 id="-shadowsocks-">配置shadowsocks服务器</h2>
<p>创建一个<code>json</code>文件用于填写服务器，以下为一个示例。</p>
<pre><code class="lang-json">{
  &quot;server&quot;: &quot;xx.xx.xx.xx&quot;,
  &quot;server_port&quot;: 8388,
  &quot;local_port&quot;: 1080,
  &quot;password&quot;: &quot;xxxxxx&quot;,
  &quot;timeout&quot;: 600,
  &quot;method&quot;: &quot;xxxxx&quot;
}
</code></pre>
<h2 id="-">启动</h2>
<p><code>sudo sslocal -c YOUR_CONFIG_FILE</code></p>

    </article>
</body>
</html>